package com.ja.openchat.views.viewadapters;

import androidx.databinding.BindingAdapter;

import com.ja.openchat.views.UserAvatarView;
import com.zy.openchat.core.model.user.AbsGroupInfo;
import com.zy.openchat.core.model.user.UserInfo;

public final class UserAvatarViewAdapter {


    @BindingAdapter(value = {"userAvatar"})
    public static void setUserAvatar(UserAvatarView imageView, UserInfo userInfo) {
        imageView.showUser(userInfo);
    }

    @BindingAdapter(value = {"groupAvatar"})
    public static void setUserGroupAvatar(UserAvatarView imageView, AbsGroupInfo userInfo) {
        imageView.showGroup(userInfo);
    }
}
